﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KNXFramework.KNXObjects.ValueObjects;
using KNXLibrary.Enum;

namespace KNXFramework.KNXObjects
{
    internal class ValueObject : KNXObjectBase
    {
        public ValueObject(string id, string address, string name, KNXConnection connection, FlagsEnum flags)
            : base(id, address, name, connection, flags)
        {
        }
        public override string DataPointID
        {
            get { return "9.xxx"; }
        }

        public override string DataPointEISName
        {
            get { return "EIS5"; }
        }

        public override void SetObjectValue(string value)
        {
            Value = new ValueObjectValue(value);
        }

        public override KNXFramework.KNXObjects.ValueObjects.IValueObject GetBaseObjectValue(tuwien.auto.eibclient.EIBBuffer buffer)
        {
            return new ValueObjectValue(buffer);
        }
    }
}
